package com.xinqi.modules.databank.v2.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.xinqi.common.mybatis.data.entity.BaseEntity;
import com.xinqi.modules.databank.dto.req.question.QuestionRateDTO;
import lombok.Getter;
import lombok.Setter;

import java.math.BigDecimal;
import java.util.List;

/**
 * 课程资料库主表实体层
 *
 * @author: system
 * @date: 2023/03/14
 */
@Setter
@Getter
@TableName("co_course_resource_analysis")
public class CourseResourceAnalysisEntity extends BaseEntity {

    /** 班级ID */
    @TableField(value = "class_id")
    private Long classId;
    /** 课程内容ID */
    @TableField(value = "content_id")
    private Long contentId;
    /**课程内容类型*/
    @TableField(value = "content_type")
    private Integer contentType;
    /** 总题数 */
    @TableField(value = "question_num")
    private Integer questionNum;
    /** 总分 */
    @TableField(value = "score")
    private BigDecimal score;
    /** 平均分 */
    @TableField(value = "avg_score")
    private BigDecimal avgScore;
    /** 平均答题正确率 */
    @TableField(value = "avg_rate")
    private BigDecimal avgRate;
    /** 答题得分率率 */
    @TableField(value = "score_rate")
    private BigDecimal scoreRate;
    /** 总人数 */
    @TableField(value = "student_num")
    private Integer studentNum;
    /** 答题人数 */
    @TableField(value = "answer_num")
    private Integer answerNum;
    /** 答题平均得分率 */
    @TableField(value = "question_rate")
    private List<QuestionRateDTO> questionRate;

}
